<%@ Page Language="c#" Inherits="PHSRAG.Insight21.UserOrderSummary" CodeFile="UserOrderSummary.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>UserOrderSummary</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="UserOrderSummaryForm" method="post" runat="server">
        <table class="Container" width="100%">
            <tr>
                <td>
                    <table class="Header" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="insightHeader" runat="server"></cc1:Header>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:PurchasingSubNavigation ID="purchasingSubNavigation" runat="server"></cc1:PurchasingSubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <cc2:BreadCrumb ID="breadCrumb" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" cellpadding="10" cellspacing="10" style="background-color:#ffffff">
                        <tr>
                            <td>
                                <cc2:ExpandingPanel ID="expandingPanel" runat="server" ExpansionToggler="expansionToggler">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc1:CommonSearch ID="commonSearch" runat="server" Module="Purchasing" ExtendedSearchControl="purchasingSearch"
                                                        OnSearch="OnSearch" OnClearSelection="OnClearSelection" Field1Prompt="ID #:"
                                                        Field1ID="poNumber" Field2Prompt="Vendor:" Field2Style="DataInput_Wide" Field2ID="vendorName"
                                                        ViewOptionVisible="false" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="PanelSeparator">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <cc2:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
                                                        ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
                                                        ExpandedImage="~/Images/Arrow_DN.gif" />
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc1:PurchasingSearch ID="purchasingSearch" runat="server" TransactionTypeFilterVisible="false"
                                                        OrderTypeFilterVisible="false" EnteredByFilterVisible="false" UserOrderTypeVisible="true"
                                                        TotalOrderAmountFilterVisible="true" InvoiceDateFilterVisible="True"></cc1:PurchasingSearch>
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc2:ExpandingPanel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <table id="dynamicTable" class="Invisible" cellspacing="10">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" ContainerID="dynamicTable" runat="server">
                                </cc2:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table class="PlaceBar">
                        <tr>
                            <td class="PageName">
                                User Order Summary</td>
                            <td align="center">
                                <cc1:RefreshDates ID="refreshDates" runat="server" Visible="True" SalaryAsOfDateVisible="false"
                                    POAPAsOfDateVisible="True" GLAsOfDateVisible="True" />
                            </td>
                            <td align="right">
                                <cc1:InsightDownloadBar ID="reportDownload" useRootHost="true" runat="server" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                    <table width="100%" cellspacing="0">
                        <tr>
                            <td>
                                <cc2:Pager ID="pagerAboveDatagrid" runat="server"></cc2:Pager>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataGrid ID="dataGrid" CssClass="DataGrid" Width="100%" AutoGenerateColumns="False"
                                    AllowSorting="True" AllowPaging="True" AllowCustomPaging="True" runat="server">
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem" />
                                    <ItemStyle CssClass="DataGridItem" />
                                    <HeaderStyle CssClass="DataGridHeader" />
                                    <PagerStyle Visible="False" />
                                    <Columns>
                                        <asp:BoundColumn DataField="OrderType" SortExpression="OrderType" ReadOnly="True"
                                            HeaderText="Type"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="OrderId" SortExpression="OrderId" ReadOnly="True" Visible="False"
                                            HeaderText="OrderId"></asp:BoundColumn>
                                        <asp:ButtonColumn ButtonType="LinkButton" DataTextField="OrderNumber" SortExpression="OrderNumber"
                                            CommandName="LinkToDetails" HeaderText="ID #"></asp:ButtonColumn>
                                        <asp:BoundColumn DataField="RequisitionNumber" SortExpression="RequisitionNumber"
                                            ReadOnly="True" HeaderText="Req #"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="InvoiceNumber" SortExpression="InvoiceNumber" ReadOnly="True"
                                            HeaderText="Invoice #"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="Requestor" SortExpression="RequestorName" ReadOnly="True"
                                            HeaderText="Requestor"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="Vendor" SortExpression="VendorName" ReadOnly="True" HeaderText="Vendor">
                                        </asp:BoundColumn>
                                        <asp:BoundColumn DataField="TransactionDate" SortExpression="OrderDate" ReadOnly="True"
                                            HeaderText="Trans. Date"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="FundNumber" SortExpression="FundNumber" ReadOnly="True"
                                            HeaderText="Fund #"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="TotalAmount" SortExpression="OrderAmount" ReadOnly="True"
                                            HeaderText="Original Order Amt" ItemStyle-HorizontalAlign="Right"></asp:BoundColumn>
                                        <asp:TemplateColumn>
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="CheckAll" runat="server" Text="Delete" TextAlign="Left" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="DeleteThis" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                    </Columns>
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Pager ID="pagerBelowDatagrid" runat="server"></cc2:Pager>
                            </td>
                        </tr>
                    </table>
                    <table width="100%">
                        <tr>
                            <td align="right">
                                <asp:ImageButton ID="addUserOrder" ImageUrl="../images/b_adduserorder.gif" runat="server">
                                </asp:ImageButton>
                                <asp:ImageButton ID="deleteUserOrders" ImageUrl="../images/b_deleteuserorders.gif"
                                    runat="server"></asp:ImageButton></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
